/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #222;
}

/* BARRA SUPERIOR */
.top-bar {
  height: 25px;
  background-color: #004C86;
}

/* ========== ENCABEZADO ========== */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 10px 20px;
  position: relative;
  flex-wrap: wrap; /* Esto hace RESPONSIVO el encabezado */
}

/* LOGO */
.logo img {
  height: 60px;
  width: auto;
  animation: logoIntro 1.2s ease-out forwards;
}

/* Animación del logo */
@keyframes logoIntro {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

/* NAV contenedor centrado */
.nav-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* MENÚ */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.main-nav a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  padding: 0 1rem;
  position: relative;
  transition: 0.3s;
}

/* Separadores */
.main-nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background-color: #000;
}

/* Hover */
.main-nav a:hover {
  color: #004C86;
  text-decoration: underline;
}

/* BOTÓN UMARIANA */
.btn-institucional {
  display: flex;
  align-items: center;
  background-color: #004C86;
  color: #fff;
  padding: 10px 16px;
  border-radius: 5px;
  gap: 10px;
  text-decoration: none;
  height: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Efecto hover botón */
.btn-institucional:hover {
  background-color: #0066b3;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* =====================================
      RESPONSIVIDAD PARA CELULARES
   ===================================== */

@media (max-width: 900px) {
  .nav-wrapper {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 10px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .main-nav a:not(:last-child)::after {
    display: none; /* Quitamos separadores en móvil */
  }

  .menu-header {
    justify-content: center;
  }

  .btn-institucional {
    margin-top: 10px;
  }
}

@media (max-width: 600px) {
  .logo img {
    height: 50px;
  }

  .main-nav a {
    padding: 5px 10px;
    font-size: 14px;
  }

  .btn-institucional {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* SECCIÓN PRINCIPAL (BOTONES CAMPUS) */

/* ============================
   SECCIÓN PRINCIPAL
============================ */
/* ============================
   ESCRITORIO
============================ */
.hero-section {
  background-image: url("fondo-seccion-1.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  min-height: 700px;
  position: relative;
}


/* Contenedor de los botones */
.contenedor-botones {
  display: flex;
  justify-content: center;
  gap: 30px;
  position: absolute;
  bottom: -70px; /* Mueve los botones hacia la línea divisoria */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Estilo de los botones */
.boton-campus img {
  width: 300px; /* Botones más grandes */
  max-width: 100%;
  border-radius: 65px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.boton-campus img:hover {
  transform: scale(1.05);
}

.boton-campus-externo {
  align-self: center;
}
.contenedor-botones a:nth-child(2) {
  align-self: center;
}


/* =======================================================
   RESPONSIVE: AJUSTES DE FONDO Y BOTONES EN CELULAR
   ======================================================= */

/* Celulares grandes */
@media (max-width: 480px) {
    
    /* Fondo completo sin recortarse */
    .hero-section {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top center;
        min-height: 420px; /* altura extendida para que se vea completa */
    }

    /* Botones siguen uno al lado del otro */
    .contenedor-botones {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        bottom:90px; /* subimos los botones */
        transform: translateX(-50%);
    }

    /* Botones más pequeños */
    .boton-campus img {
        width: 350px;
        border-radius: 20px;
    }
}

/* Celulares pequeños */
@media (max-width: 360px) {

    /* Fondo aún más compacto */
    .hero-section {
        background-size: contain;
        background-position: top center;
        min-height: 380px;
    }

    .boton-campus img {
        width: 130px;
        border-radius: 35px;
    }

    .contenedor-botones {
        bottom: -30px;
        gap: 8px;
    }
}


/*seccion secundaria */
.seccion-secundaria {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 250px 2rem 4rem 2rem; 
  flex-wrap: wrap;
  background-image: url("Recurso 7@2x-8.png");
  background-repeat: no-repeat;
  background-size: cover;
  flex-direction: row-reverse;
}

/* Columna izquierda */
.texto-acordeon {
  max-width: 600px;
  margin-top: -60px;
}

.texto-acordeon h2 span {
  color: #009fe3;
}

.texto-acordeon p span {
  color: #009fe3;
}

/* Contenedor acordeón */
.acordeon {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 2px solid #e0e0e0;
  margin-top: 3rem;
}

/* Item */
.acordeon-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Encabezado (botón) */
.acordeon-header {
  padding: 1rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  position: relative;
}

.acordeon-header:hover {
  background-color: #eaeaea;
}

/* Ícono de flecha */
.acordeon-header::after {
  content: '▶';
  position: absolute;
  right: 1rem;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

/* Flecha cuando se despliega */
.acordeon-item.activo .acordeon-header::after {
  transform: rotate(90deg);
}

/* Contenido desplegable */
.acordeon-content {
  display: none;
  padding: 1rem 1.2rem;
  background: #ffffff;
  border-top: 1px solid #ddd;
  line-height: 1.6;
  color: #444;
}

/* Mostrar contenido */
.acordeon-item.activo .acordeon-content {
  display: block;
}

/* Último botón estilo verde (GLIA - NO SE MODIFICA) */
.acordeon .acordeon-item:last-child .acordeon-header {
  background-color: #55c7a1;
  color: white;
}

.acordeon .acordeon-item:last-child .acordeon-header:hover {
  background-color: #2ba878;
}

.acordeon .acordeon-item:last-child {
  border-left: 4px solid #55c7a1;
}

/* BOTÓN LÍNEA EXTERNA ➜ MORADO */
.acordeon-item.externo .acordeon-header {
  background-color: #1a5097; 
  color: white;
}

.acordeon-item.externo .acordeon-header:hover {
  background-color: #101175;
}

.acordeon-item.externo {
  border-left: 4px solid #1a2ea0;
}

/* Imagen derecha */
.imagen-ilustrativa {
  position: relative;
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
}


.imagen-ilustrativa img {
  width: 130%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
}

/* Título sobre la imagen */
.titulo-sobre-imagen {
  position: absolute;
  top: -5.5rem;
  left: 5rem;
  text-align: left;
  width: 100%;
  padding-left: 1rem;
}

.titulo-sobre-imagen h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.titulo-sobre-imagen span {
  color: #009fe3;
}

/* ========== RESPONSIVO GENERAL ========== */

/* Tablets */
@media (max-width: 1024px) {

  .seccion-secundaria {
    padding: 150px 1.5rem 3rem 1.5rem;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    background-size: contain;
  }

  .texto-acordeon {
    margin-top: 20px;
    max-width: 90%;
  }

  .imagen-ilustrativa {
    max-width: 60%;
    margin: 0 auto 2rem auto;
  }

  .imagen-ilustrativa img {
    width: 100%;
  }

  .titulo-sobre-imagen {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 1rem;
    text-align: center;
  }
}

/* Celulares medianos */
@media (max-width: 768px) {

  /* Corrige el orden → imagen arriba */
  .seccion-secundaria {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 150px;
  }

  .imagen-ilustrativa {
    order: -1;
    max-width: 85%;
    margin: 0 auto 2rem auto;
  }

  /* Imagen visible */
  .imagen-ilustrativa img {
    width: 100% !important;
    margin: 0 auto;
  }

  .acordeon {
    padding: 1.2rem;
  }

  .acordeon-header {
    font-size: 0.95rem;
  }

  .acordeon-content {
    font-size: 0.9rem;
  }

  /* Título arriba */
  .titulo-sobre-imagen {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 1rem;
    text-align: center;
  }

  .titulo-sobre-imagen h2 {
    font-size: 1.7rem;
  }
}

/* Celulares pequeños */
@media (max-width: 480px) {

  .seccion-secundaria {
    padding: 100px 0.5rem 2rem 0.5rem;
  }

  .texto-acordeon h2 {
    font-size: 1.4rem;
  }

  .imagen-ilustrativa {
    max-width: 95%;
  }

  .imagen-ilustrativa img {
    width: 100%;
  }

  .titulo-sobre-imagen h2 {
    font-size: 1.5rem;
  }

  .acordeon {
    padding: 1rem;
  }

  .acordeon-header {
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  .acordeon-header::after {
    font-size: 1rem;
  }
}


/* seccion tercera infrastructura tecnologica */ 

/* =======================================================
   Sección 3: Infraestructura Tecnológica
======================================================= */

/* seccion tercera infrastructura tecnologica */

/* =======================================================
   Sección 3: Infraestructura Tecnológica
======================================================= */

/* seccion tercera infrastructura tecnologica */

/* =======================================================
   Sección 3: Infraestructura Tecnológica
======================================================= */

/* ============ SECCIÓN 3 ============ */

/* ============ SECCIÓN 3 ============ */
/* ============ SECCIÓN 3 ============ */

/* ============ SECCIÓN 3 ============ */

.seccion-tres {
  background-image: url('fondo-seccion-3.png');
  background-size: cover;
  background-position: center;
  padding: 60px 30px;
  font-family: 'Montserrat', sans-serif;
}

/* POSICIÓN DEL TÍTULO Y DESCRIPCIÓN */
/* CONTENEDOR DONDE POSICIONAMOS EL TÍTULO Y LA DESCRIPCIÓN */
.texto-posicionado {
  position: relative;
  width: 100%;
  height: 220px; /* Ajusta según lo alto que desees ese espacio */
}

/* TÍTULO EXACTO */
.titulo-infra {
  position: absolute;
  top: 40px;     /* ⬆ mueve hacia arriba o abajo */
  left: 260px;   /* ⬅ mueve hacia la izquierda/derecha */
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.1;
  color: #000;
}

.titulo-infra span {
  color: #009fe3;
}

/* DESCRIPCIÓN EXACTA */
.descripcion-infra {
  position: absolute;
  top: -25px;      /* ⬆ ajústalo para alinearlo verticalmente */
  right: 215px;   /* ➡ ajusta cuánto hacia la derecha */
  width: 580px;   /* ancho del bloque de texto */
  font-size: 1.05rem;
  color: #333;
  text-align: justify;
  line-height: 1.4;
}

/* ============ CARRUSEL (3 TARJETAS VISIBLES) ============ */

.carousel {
  max-width: 1200px;       /* Ancho fijo para que entren 3 tarjetas */
  margin: 40px auto 0 auto;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  align-items: center;
  transition: transform 0.45s ease;
}

/* TARJETAS */
.card {
  width: 360px;
  min-width: 360px;
  flex: 0 0 360px;
  margin: 0 20px;
  background: #004C86;
  border-radius: 14px;
  color: white;
  text-align: center;

  transform: scale(0.9);
  opacity: 0.5;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.card.active {
  transform: scale(1.05);    /* la del medio sobresale */
  opacity: 1;
}

.card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.card h3 {
  padding: 12px 0;
}

/* ============ PUNTOS DEL CARRUSEL ============ */
.carousel-dots {
  text-align: center;
  margin-top: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #bbb;
  margin: 0 4px;
  transition: 0.3s;
}

.dot.active {
  background: #009fe3;
  transform: scale(1.25);
}

/* RESPONSIVE BÁSICO */
@media (max-width: 900px) {
  .titulo-infra {
    left: 20px;
    font-size: 2rem;
  }

  .descripcion-infra {
    position: static;
    margin: 20px auto 0 auto;
    width: 90%;
    text-align: left;
  }

  .texto-posicionado {
    height: auto;
  }

  .carousel {
    max-width: 100%;
  }

  .card {
    width: 280px;
    min-width: 280px;
    flex: 0 0 280px;
    margin: 0 10px;
  }

  .card img {
    height: 220px;
  }
}


/* RESPONSIVE CORREGIDO */
@media (max-width: 900px) {

  .texto-posicionado {
    display: flex;
    flex-direction: column-reverse; /* TÍTULO ARRIBA EN CELULAR */
    align-items: flex-start;
    padding: 0 20px;
    height: auto;
  }

  .titulo-infra {
    position: static;
    font-size: 2rem;
    margin-top: 0;
    order: 1;
  }

  .descripcion-infra {
    position: static;
    width: 90%;
    font-size: 1rem;
    margin-top: 10px;
    order: 2;
    text-align: left;
  }

  .carousel {
    max-width: 100%;
  }

  .card {
    width: 280px;
    min-width: 280px;
  }

  .card img {
    height: 220px;
  }
}




/* SECCION 4: NUESTROS ALIADOS */
/* SECCIÓN 4: NUESTRAS PLATAFORMAS */
/* SECCIÓN 4: NUESTRAS PLATAFORMAS */
/* SECCIÓN 4: NUESTRAS PLATAFORMAS */
.seccion-4 {
  background-image: url('fondo-seccion-5.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 60px 20px;
  text-align: center;
  color: #000;
}

/* Título centrado */
.titulo-seccion {
  width: 100%;
  text-align: center;
  display: block;
  margin-bottom: 40px;
}

.titulo-seccion h2 {
  margin: 0 auto;
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
}

.titulo-seccion .blanco {
  color: #050505;
}

.titulo-seccion .azul {
  color: #00aaff;
}

/* GALERÍA DE TARJETAS */
.galeria-aliados {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Tarjetas base */
.tarjeta {
  background: #fff;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;

  /* 🔥 CLAVE PARA CENTRAR LA IMAGEN */
  display: flex;
  align-items: center;   
  justify-content: center;
  height: 200px; /* Ajusta según necesites */
}

/* Hover profesional */
.tarjeta:hover {
  transform: scale(1.07) translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.20);
}

/* Imagen */
.tarjeta img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* 🔥 asegura que la imagen no se corte */
  border-radius: 12px;
}

/* Tamaños */
.tarjeta.grande {
  width: 260px;
  transform: scale(1);
}

.tarjeta.pequeña {
  width: 220px;
  transform: scale(0.92);
}

/* Ajuste hover */
.tarjeta.pequeña:hover {
  transform: scale(1.05) translateY(-8px);
}

.tarjeta.grande:hover {
  transform: scale(1.10) translateY(-8px);
}

/* ================================
   RESPONSIVE
   ================================ */

/* Tablets */
@media (max-width: 992px) {
  .tarjeta.grande { width: 230px; }
  .tarjeta.pequeña { width: 200px; }
}

/* Pantallas medianas */
@media (max-width: 768px) {

  .titulo-seccion h2 {
    font-size: 2rem;
  }

  .tarjeta.grande,
  .tarjeta.pequeña {
    width: 45%;
    height: 180px; /* Ajuste proporcional */
  }
}

/* Móviles */
@media (max-width: 480px) {

  .titulo-seccion h2 {
    font-size: 1.8rem;
  }

  .galeria-aliados {
    gap: 15px;
  }

  .tarjeta.grande,
  .tarjeta.pequeña {
    width: 80%;
    height: 160px; /* Más pequeño en móvil */
  }
}





/* ====================== SECCIÓN 6 ====================== */
/* Sección 6: Nuestro Equipo */
/* Sección 6: Nuestro Equipo */
/* ====================== SECCIÓN 6 ====================== */
/* ====================== SECCIÓN 6 ====================== */
/* ====================== SECCIÓN 6 ====================== */
/* ====================== SECCIÓN 6 ====================== */
.seccion-6 {
  padding: 60px 20px;
  color: #000000;
  width: 100%;
}

.seccion-6-contenido {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* NUEVO CONTENEDOR CENTRADO */
.seccion-6-centro {
  max-width: 800px;
}

/* TÍTULO CENTRADO */
.titulo-centro {
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 25px;
}

.negro { color: #1b1f33; }
.azul { color: #009fe3; }

/* DESCRIPCIÓN CENTRADA */
.descripcion-centro {
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 35px;
}

/* ================== BOTÓN ================== */
.bloque-boton {
  text-align: center;
}

.ver-mas-btn {
  display: inline-block;
  background-color: #1b1f33;
  color: #fff;
  padding: 12px 30px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
}

.ver-mas-btn:hover {
  background-color: #333;
}

/* ====================== MODAL ====================== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-contenedor {
  position: relative;
  background: #ffffff;
  padding: 0;
  border-radius: 14px;
  max-width: 1200px;
  width: 90%;
  max-height: 90%;
  box-shadow: 0px 0px 25px rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;  
}

.cerrar {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #1b1f33;
  color: #fff;
  width: 38px;
  height: 38px;
  font-size: 25px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.2s;
}

.cerrar:hover { background: #009fe3; }

.genially-frame {
  width: 100%;
  height: 75vh;
  border: none;
  border-radius: 10px;
}

/* ================= CONTADORES ================= */
.counters-container {
  margin-top: 60px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
}

.counter-box {
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  width: 260px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.icon-counter {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
}

.counter-box h3 {
  font-size: 32px;
  color: #1b1f33;
  margin: 5px 0;
}

.counter-box p {
  font-size: 16px;
  color: #555;
  margin-top: 5px;
}








/* ========================== SECCIÓN FINAL: CONTACTO ========================== */


/* ========================== SECCIÓN FINAL: CONTACTO ========================== */
/* Fondo general con degradado sutil */
.contacto-elegante {
    padding: 70px 40px;
    background: #f5f7fa;
}

.contacto-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    background:#eef3f5;
    padding: 50px;
    border-radius: 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 1300px;
    margin: auto;
}

.col-info h2 {
    font-size: 40px;
    color: #0b2f6b;
    margin-bottom: 20px;
}

.lista-info li {
    margin: 12px 0;
    font-size: 18px;
    color: #333;
}

.lista-info a {
    color: #0b2f6b;
    font-weight: bold;
    text-decoration: none;
}

.social-min img {
    width: 36px;
    margin-right: 15px;
    transition: .3s;
}
.social-min img:hover { transform: scale(1.15); }

.btn-min {
    display: inline-block;
    margin-top: 25px;
    background: #0b2f6b;
    color: rgb(233, 233, 240);
    padding: 14px 26px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}
.btn-min:hover { background: #082552; }

.col-map iframe {
    width: 100%;
    height: 380px;
    border: none;
    border-radius: 18px;
}

@media(max-width:900px){
    .contacto-card { grid-template-columns: 1fr; }
}

